<template>
  <div class="card">
    <div class="head">
      <div class="title"><slot name="title"></slot></div>
      <div name="more">
        <slot name="more"></slot>
      </div>
    </div>
    <div class="content"><slot name="content"></slot></div>
  </div>
</template>

<style scoped lang="less">
.card {
  background: #ffffff;
  border-radius: 2px;
  padding: 0px 22px 21px 24px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  .head {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid #f2f2f2;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .content {
    padding-top: 16px;
    flex: 1;
    overflow: hidden;
  }
}
</style>
